clarify doc for first() and last(). closes #2537
replace some uses of []. closes #8101

in particular, use a direct C_NULL pointer for unused lapack arguments.