Associate class id with literals when pushing

This makes sure we associate the proper class_id for the literals we
have stored. This also improves the locals handling by tracking the type
information as well. This makes sure that for example a set_local /
push_local pair keeps the type information around.
Use faster path for making array on the stack