Fix case sensitivity check in enumerations
Fix case sensitivity and error reporting in signal declarations