calculating content length at serialization time
Merge branch 'master' of http://github.com/tjb1982/lal