Introducing function validateResourcePoolParams

Function validateResourcePoolParams allows to test if ResourcePoolParams
is valid. Useful in cases like command line parsing where you wan't to
know if things will work before createPool throws an exception at you.