Active record serializable attribute support

Adds support for active record custom serialization so that timeofday can be stored in timecolumn.