fixed bug in number handling, basic support for indexing tuples in metalanguage