refine scala BigDecimal example
array and map snippets