Fix Work::$types functions