Added a way to automatically unpack tuplkes, which is useful in chains of composed functions.
Inlined several functions.
Minor edits.