content parameter bugfixes, optimizations

1. Fix bug where content at arguments[>2] is not added if content at
arguments[2] is `undefined`.
2. Textareas now handle content parameters the same way as other tags
(uses arguments[2+], nested arrays are flattened).
3. toDOM refactored into appendChild, restructured to reduce code
duplication and help with minification