allow dotted aliases & defaults

Generalized the use of setKey to process properly dotted aliases and defaults. Added tests to validate these changes.