Created defined? & undefined? predicates.
Added flatten-vectors function; fixed add-statements.