size attribute must be unsigned long

size should not be signed value, and WebIDL does not allow to use
int for Number. long is the right type.
also readonly should be declared before the attribute.