fixes #19 (negation of Reference is not working properly)