simulator: add some checks for args
simulator: add some checks for args

Since they could overflow and behave unexpectedly.

Signed-off-by: Bruno Dilly <ea4fb6320c1221b6a559089d8ab97ffc53fc6586@intel.com>

solettaproject/soletta-machine-learning,anselmolsm/soletta-machine-learning,solettaproject/soletta-machine-learning,solettaproject/soletta-machine-learning,anselmolsm/soletta-machine-learning,anselmolsm/soletta-machine-learning