Fix Rails 4.2 SerializationTypeMismatch

fixes #166
Work in progress