make a.$b work as expected. fixes #4004