Adds checks to error out if there is invalid gtype config