Implemented internal state validation for Ragel based components