#428: Use ClassNode if present in ImportNode to get line number and possibly source text