use proxy in ByteArrayElem size method