Implement generator wrapping

Also a test for same. Note generators can only be mono for now.