Editor is super close to done

added enum selector
added basic definition generator
added external reference selector (it's broken but not badly, will fix
when definition system is more fleshed-out)
fixed some logic in the fieldvalueaccessor's get/set methods