Handle integer timestamp

Handle integer timestamp, read the timestamp correctly and if the result
is timestamp return it as integer.

We have an object which has integer timestamps, the directive would break when trying to bind on it directly.