Fixing get-all-of-type so that it comiles