Added unit tests for the FieldOperations class.

Fixed a couple of issues -
* OneToOne relationships were not being saved.
* Imports were not added for the related type in OneToOne relations

Also removed unwanted method parameters for creating OneToOne and
ManyToOne relationships. These types do not have the concept of
optional=false aka required relationships.