Added support for an options array
Added a whitespaceTextNode option and test