Fix bug in unused variable tracking

Variable usage was not tracked correctly for known rowtypes.

Per report from Steeve Lennmark.
Merge pull request #7 from johto/unused_variable_bugfix

Fix bug in unused variable tracking