Fix function-like instantiation

Function-like instantiation was using the contained environment incorrectly.
This has been corrected so that it only has access to the tuples in the
declaring environment. The definition for Container is wrong, but meh.

Change-Id: I64e08f6307fe7d1a0021a3ae82f86164c7539e9c
Fix name for instantiate

Change-Id: I004b3c2fbeaca82b11d40b2bc19d56fea9e60908
Parser compilers

Not tested though

Change-Id: Ia205352cb7769559e96de76be5cb2a06d3e8362b