Fix for getSimpleName for nested objects