copy/peek for IOBuffer and some module introspection. Close #3229