Fixed Basic Wrapper bug

alexInputPrevChar was short one value in the tuple which cause
an error when using left_ctx.  This patch adds the missing `_`
and includes a type signature which will prevent this bug in
the future.