add optional column parameter to isDirty

This allows getting the dirty state of a single column.
Makes the api much more intuitive to use
Db Model: convert row values to correct php types

This improves dirty behaviour has it normalizes eg. boolean (false vs. 0 vs. '' vs. '0')
Merge pull request #163 from nsams/model-improvements

Model improvements