Allow nextval()
to take a regclass instance
#879
Merged
nextval()
to take a regclass instance
#879