Remove isgamestate field from gamestate table

gamestate.type() is a new replacement function that can be used to determine
whether or not a given table is a gamestate.
Store getmetatable in a local
Move transparent field to gamestate table