Utilities: getDepth detects signed types

using templates now