fixed; casting when added docs to populated arrays

closed #1348