refactor to obtain annotation bitmask ceylon/ceylon-js#373
updated tests
encode bitset annotations for runtime metamodel #373