Utilities: getDepth detects signed types