Allow setting keys to nil
Work around an ActiveModel bug
Remove build_with_env method