make some types private
sync with hxparse changes for better error reporting
fix unused pattern error