Regression test and patch for ticket #20924.
Update LazyObject method proxy declarations to simpler form.
Merge pull request #1479 from nickbruun/ticket_20924

Proxy __len__ and __contains__ for LazyObject