Adds spec coverage and a fix for handling of position fields once the `json` gem upgrade has taken place.