Add length check to AmfDate::deserialize.
Remove unnecessary condition.
Move DeserializationContext's template function to header.

This is in preparation of adding deserialization of the container types, which
are themselves template classes. Thus, explicit instantation for each possible
template parameter for each of the containers would be required.