Return size in bytes, not in bits
Return access type (pointer), not value

When generating code for simulation/shared lib, the functions returning
the internal variables must return a pointer to the variables, not the
variables themselves (which happened with records even if the variables
were declared as aliased)
Don't try to access context on syntax error