bring back getElements() as a @deprecated method

was removed by fd893333605edc353828cf1dd60584afae3a1b20 but really
should be marked @deprecated for easy migration to 1.4 from 1.3