Clearer error message for constants, fixes #576

if constants are defined like 'default constants: x' or 'default
constants' followed by 'x:y' without a space or something like that, it
would show a big NPE stacktrace... now it has a nice clean error
message.