Proper filename, lineno and column information for cached nodes. Fixes #1671