Added method for registering blocks with itemblock objects instead of classes

Most useful because it allows the itemblock class to be a nested class.