prettified serialize code by putting non-public stuff in impl/*.ipp files
bugfix: typo in deserialize from last change.
make tx deserialization less strict so that asserts aren't triggered by bad streams.