#27 Expanded bitmask test case and fixed issues

Added conversion routines for bit masks. Also fixed an issue where
binary expressions would not be evaluated (and folded) in the first
pass, causing issues when a mask was part of an initializer.
Merge pull request #59 from Seldomberry/SanderMertens

#27 Expanded bitmask test case and fixed issues