bson: check array parameter in bson_append_array() for invalid keys.

This is intended to help catch situations where array keys are not
being generated correctly by API consumers. This is not intended to
be complete, but to warn against situations with empty keys such as
"" instead of "0".

See SERVER-14398 for more details.