Don't overflow the stack if attribute values are very large (>64k).

Add new test case for this usage.