Warnings cull from SINQ code.

All related to conversions to/from size_t etc. I have simply made explicit
with static_casts what was happening implicitly so that the original behaviour
is preserved.
Refs #7505
Merge branch 'feature/7505_sinq_code_check' into develop