added asn1 functions for handling booleans in a simple context