Exposed the getElementByReference function in ElementCollection. 

This is a temporary fix for issue #154 that should not be a permanent solution
but helps right now