Set an explicit MaxDepth of 50 by default to mitigate StackOverflow Exceptions. Also count MaxDepth when serializing late-bound types