Less templates.
Use AmfInteger#asLength utility method.
Simplify AmfVector by immediately serializing elements.