fix stack underflows, complex number integer check
Merge branch 'module/calc' into dev