added specs for Field, added possibility to define fields by type name, added duplicate field definition validation