Added func test

Added guard against undefined func in node.forEach. Turned out I was
using the wrong predicate in a few places
Dont remove forms

Form elements should be unwrapped, not removed, so added form to white
list. Also added some thoughts in the comments
Minor comments