Some improvements to @fixture

use isa(x, T) instead of typeof(x)==T
make @fixture work with methods with type parameters