add dict() function

fixes incorrect type for user_expressions and user_variables