Slight rewrite of the ber encoding mechanism.
Is a lot cleaner the new version is.