Fixed GetVariantInvocationCandidates. Fix for #354 and #426.

--HG--
extra : source : 6ae2b9b9e5e015541cdbcfaea11a15fcf2ca2dd9
extra : amend_source : 6f742f5fc5b902f419ef7bf0978b8e18b17326c8
Merge pull request #458 from iskiselev/Fix_GetVariantInvocationCandidates_Issue354

Fixed GetVariantInvocationCandidates. Fix for #354 and #426.