fix($parse): allow spaces around dots for identifiers

Fixes #4613
Closes #8550