Improve type printing (toString/debugging/crashes)