PLT-556 - Change signature of Result.failure

Current signature is not flexible enough for cases where a collection containing results has been declared. 

Test has been updated to show the problem (would not compile with original signature).

This matches a change that has already been made for platform.