FIX: issue #401 (SETting a reference broken in compiler)
FIX: improved SET first argument type.
TEST: update functions tests to match SET changed spec block.