WIP implementing chunk properties

We now generate the correct instructions, though the 'set chunk property' instruction doesn't clean up all its arguments yet.