Improved AST struct and made NomValue use individual bits for storage