Minor cleanup, bug in Dense to BigDecimal