Implementing returnPointerValueOrDefault

Also there is a small fix on a previous test involving strings being compared as longs, which worked since strings does not exist on C and are basically addresses :-)