Added missing const qualifiers.
Implement type keyword in the config compiler

Fixes #3616