Clean up file paths when importing.

Closes #1076
Allow functions named `true`, `false`, and `null`.

Closes #1090