Add container support for function length()

Add acceptance test