new defineIfNotDefined() utility function
use defineIfNotDefined() for some constants

TAGNAME_REGEXP AUTOTAGNAME_REGEXP constants can be defined before.
Merge pull request #72 from gescheit/redefine_feature

Proper way to redefine constants