move destructuring into stdlib

i'd like to define it earlier, but it's difficult to figure out how to
make everything work such that it can be defined as early as possible.

there's likely an interesting dependency analysis algorithm in here. :)