Merge pull request #163 from zivchang/next

[bug fixing] PTSDK-1434
[bug fixing] PTSDK-1409

fix power.release() throw wrong error type if parameter's type
mismatching