Add spec for treating Time marshal data as binary
Check marshalled data length based on bytes

Fixes #2262