Add some missing get_used_variables methods

Fixes bug 734315