ASGARD-1092 - NPE on adding new scaling policy and alarm using Java 7

Turns out the problem was using the `T` generic argument type in the closure args.