Added argIsFunction and isFunction methods; resolves #3.