Fixed issue with wrong special key
References to custom values with spaces are no evaluated correctly (but not expanded)
Fixed function key regular expression