fixed reference check (proper class name)

properly pass parameters by reference
Merge pull request #55 from lslezak/reference_fix

Fixed reference check (proper class name)