lib: added init.from in array and hashset

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib: added 'slice' method to List

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>