make id in LensObjects 'long int'; return getId() for SourceObjects