custom fields directive complete

* finished custom fields
* changed serialized to handle numbers