gl2: expose the Option function type.