add dict() function

fixes incorrect type for user_expressions and user_variables
Rename dict to namedlist to fit R terminology
Merge branch 'dict'