AWS - Structured access - bug?

According to the AWS manual, you can set RpMaxItems for a repeat group so that AWS knows how much space to generate for variables if structured access is enabled. However if I try it, it generates an error.

Has anyone managed to get this to work?