extra double-array construction functions and tests