Revert to using array-of-nodes as the template format; fix minification issue; unregister already calls clearCachedDefinition, so no need to call it again.