While using the class file noted below you'll notice setting an array of keywords with the set() function will not work. Try this instead:
<?php
function set($tag, $data) {
if(is_array($data)){
$c = count($data);
for ($i=0; $i <$c; $i++){
$this->meta["2#$tag"][$i] = $data[$i];
}
$this->hasmeta=true;
} else {
$this->meta["2#$tag"]= Array( $data );
$this->hasmeta=true;
}
}
?>