Fixes #28: handle complex variable interpolation correctly