converted lazy.js to generics
small fixes to Lazy.js
Merge pull request #1798 from Bartvds/def/lazy.js

Converted lazy.js to generics