Changed has => haskey and unsafe_ref => unsafe_load to conform to latest julia API

This will remove deprecation warnings.