bindings: adding some sanity checks on pointers in pkcs11_functions.
filter: fixed a small issue with GetMechanismList when filtering + optimization (passthrough to backend) when there is nothing in the forbidden list.