added fixes to as_typed_vector, improved docs, added new tutorials