Be more strict with {Element} types
Merge pull request #1270 from fredj/element_jsdoc

Be more strict with {Element} types