Ensure imports inside quotes are properly registered, closes #1225