Fix special case of empty list and dtype (fixes #51)